<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="header_0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-ZA-Response-Id" content="46acde5c53db46f2806ccad726de9826">
    <title>首页 - HusterBBS</title>
    <meta name="apple-itunes-app" content="app-id=432274380">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="mobile-agent" content="format=html5">
    <meta id="znonce" name="znonce" content="d3edc464cf014708819feffde7ddd01e">
    <link rel="search" type="application/opensearchdescription+xml" href="" title="">
    <link rel="stylesheet" type="text/css" href="/styles/bootstrap.min.css">
    <style>
        .zm-item-answer-author-info a.collapse {
            margin-top: 0
        }
    </style>
</head>
<div role="navigation" class="zu-top" th:fragment="header_1">
    <div class="zg-wrap modal-shifting clearfix" id="zh-top-inner">
        <a href="/" class="zu-top-link-logo" id="zh-top-link-logo" data-za-c="view_home" data-za-a="visit_home"
           data-za-l="top_navigation_zhihu_logo">HusterBBS</a>
        <div class="top-nav-profile">

            <ul th:if="${user==null}" class="topnav-noauth clearfix">
                <li>
                    <a style="height: 43px" href="/relogin">注册/登陆</a>
                </li>
            </ul>

            <a th:if="${user!=null}" th:href="'/user/'+${user.id}" href="" class="zu-top-nav-userinfo " id=":0"
               role="button" aria-haspopup="true" aria-activedescendant="">
                <span th:text="${user.name}" class="name">$!{user.name}</span>
                <img th:alt="${user.name}" th:src="${user.headUrl}" class="Avatar" src="$!{user.head_url}"
                     alt="$!{user.name}">
                <span id="zh-top-nav-new-pm" class="zg-noti-number zu-top-nav-pm-count" style="visibility:hidden"
                      data-count="0">
                    </span>
            </a>
            <ul th:if="${user!=null}" class="top-nav-dropdown" id="top-nav-profile-dropdown" aria-labelledby=":0">
                <li>
                    <a th:href="'/user/'+${user.id}" href="" tabindex="-1" id=":1">
                        <i class="zg-icon zg-icon-dd-home"></i>我的主页
                    </a>
                </li>
                <li>
                    <a href="/msg/list" tabindex="-1" id=":2">
                        <i class="zg-icon zg-icon-dd-pm"></i>私信
                        <span id="zh-top-nav-pm-count" class="zu-top-nav-pm-count zg-noti-number"
                              style="visibility:hidden" data-count="0">
                    </span>
                    </a>
                </li>
                <li>
                    <a href="/logout" tabindex="-1" id=":4">
                        <i class="zg-icon zg-icon-dd-logout"></i>退出
                    </a>
                </li>
            </ul>

        </div>

        <button th:if="${user!=null}" class="zu-top-add-question" id="zu-top-add-question">提问</button>

        <div role="search" id="zh-top-search" class="zu-top-search">
            <form method="GET" action="/search" id="zh-top-search-form" class="zu-top-search-form">
                <input type="hidden" name="type" value="content">
                <label for="q" class="hide-text">HusterBBS搜索</label><input type="text" class="zu-top-search-input" id="q"
                                                                    name="q" autocomplete="off" value=""
                                                                    placeholder="搜索你感兴趣的内容..." role="combobox"
                                                                    aria-autocomplete="list">
                <button type="submit" class="zu-top-search-button"><span class="hide-text">搜索</span><span
                        class="sprite-global-icon-magnifier-dark"></span></button>
            </form>
        </div>
        <div id="zg-top-nav" class="zu-top-nav">
            <ul class="zu-top-nav-ul zg-clear">
                <li class="zu-top-nav-li current" id="zh-top-nav-home">
                    <a class="zu-top-nav-link" href="/" id="zh-top-link-home" data-za-c="view_home"
                       data-za-a="visit_home" data-za-l="top_navigation_home">首页</a>
                </li>
                <!--<li class="zu-top-nav-li " id="zh-top-nav-explore">
                    <a class="zu-top-nav-link" href="/">发现</a>
                </li>-->

                <li th:if="${user!=null}" class="zu-top-nav-li " id="zh-top-nav-focus">
                    <a class="zu-top-nav-link" href="/pullfeeds">关注</a>
                </li>

                <li th:if="${user!=null}" class="top-nav-noti zu-top-nav-li ">
                    <a class="zu-top-nav-link" href="#" id="zh-top-nav-count-wrap" role="button"><span
                            class="mobi-arrow"></span>消息<span id="zh-top-nav-count"
                                                              class="zu-top-nav-count zg-noti-number"
                                                              style="display: none;">0</span></a>
                </li>


            </ul>
            <div class="zu-top-nav-live zu-noti7-popup zg-r5px no-hovercard" id="zh-top-nav-live-new" role="popup"
                 tabindex="0">
                <div class="zu-top-nav-live-inner zg-r5px">
                    <div class="zu-top-live-icon">&nbsp;</div>
                    <div class="zu-home-noti-inner" id="zh-top-nav-live-new-inner">
                        <div class="zm-noti7-popup-tab-container clearfix" tabindex="0" role="tablist">
                            <button class="zm-noti7-popup-tab-item message" role="tab">
                                <span class="icon">消息</span>
                            </button>
                            <button class="zm-noti7-popup-tab-item user" role="tab">
                                <span class="icon">用户</span>
                            </button>
                            <button class="zm-noti7-popup-tab-item thanks" role="tab">
                                <span class="icon">赞同和感谢</span>
                            </button>
                        </div>
                    </div>
                    <div class="zm-noti7-frame-border top"></div>
                    <div class="zm-noti7-frame">
                        <div class="zm-noti7-content message zh-scroller" style="position: relative; overflow: hidden;">
                            <div class="zh-scroller-inner" style="height: 100%; width: 150%; overflow: auto;">
                                <div class="zh-scroller-content"
                                     style="position: static; display: block; visibility: visible; overflow: hidden; width: 315px; min-height: 100%;">
                                    <div class="zm-noti7-content-inner">
                                        <div class="zm-noti7-content-body">
                                            <div class="zm-noti7-popup-loading">
                                                <span class="noti-spinner-loading"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="zh-scroller-bar-container"
                                 style="position: absolute; right: 1px; top: 0px; height: 98px; width: 6px; border: 1px solid rgb(68, 68, 68); opacity: 0; cursor: default; border-radius: 2px; -webkit-user-select: none; background: rgb(102, 102, 102);">
                                <div style="-webkit-user-select: none;"></div>
                            </div>
                            <div class="zh-scroller-bar"
                                 style="position: absolute; right: 2px; top: 2px; opacity: 0.5; width: 6px; border-radius: 3px; cursor: default; -webkit-user-select: none; display: none; background: rgb(0, 0, 0);"></div>
                        </div>
                        <div class="zm-noti7-content user zh-scroller"
                             style="display: none; position: relative; overflow: hidden;">
                            <div class="zh-scroller-inner" style="height: 100%; width: 150%; overflow: auto;">
                                <div class="zh-scroller-content"
                                     style="position: static; display: block; visibility: visible; overflow: hidden; width: 315px; min-height: 100%;">
                                    <div class="zm-noti7-content-inner">
                                        <div class="zm-noti7-content-body">
                                            <div class="zm-noti7-popup-loading">
                                                <span class="noti-spinner-loading"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="zh-scroller-bar-container"
                                 style="position: absolute; right: 1px; top: 0px; height: 98px; width: 6px; border: 1px solid rgb(68, 68, 68); opacity: 0; cursor: default; border-radius: 2px; -webkit-user-select: none; background: rgb(102, 102, 102);">
                                <div style="-webkit-user-select: none;"></div>
                            </div>
                            <div class="zh-scroller-bar"
                                 style="position: absolute; right: 2px; top: 2px; opacity: 0.5; width: 6px; border-radius: 3px; cursor: default; -webkit-user-select: none; display: none; background: rgb(0, 0, 0);"></div>
                        </div>
                        <div class="zm-noti7-content thanks zh-scroller"
                             style="display: none; position: relative; overflow: hidden;">
                            <div class="zh-scroller-inner" style="height: 100%; width: 150%; overflow: auto;">
                                <div class="zh-scroller-content"
                                     style="position: static; display: block; visibility: visible; overflow: hidden; width: 315px; min-height: 100%;">
                                    <div class="zm-noti7-content-inner">
                                        <div class="zm-noti7-content-body">
                                            <div class="zm-noti7-popup-loading">
                                                <span class="noti-spinner-loading"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="zh-scroller-bar-container"
                                 style="position: absolute; right: 1px; top: 0px; height: 98px; width: 6px; border: 1px solid rgb(68, 68, 68); opacity: 0; cursor: default; border-radius: 2px; -webkit-user-select: none; background: rgb(102, 102, 102);">
                                <div style="-webkit-user-select: none;"></div>
                            </div>
                            <div class="zh-scroller-bar"
                                 style="position: absolute; right: 2px; top: 2px; opacity: 0.5; width: 6px; border-radius: 3px; cursor: default; -webkit-user-select: none; display: none; background: rgb(0, 0, 0);"></div>
                        </div>
                    </div>
                    <div class="zm-noti7-frame-border bottom"></div>
                    <div class="zm-noti7-popup-footer">
                        <a href="" class="zm-noti7-popup-footer-all zg-right">查看全部 »</a>
                        <a href="" class="zm-noti7-popup-footer-set" title="通知设置"><i
                                class="zg-icon zg-icon-settings"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="zu-global-notify" id="zh-global-message" style="display:none" th:fragment="header_2">
    <div class="zg-wrap">
        <div class="zu-global-nitify-inner">
            <a class="zu-global-notify-close" href="javascript:;" title="关闭" name="close">x</a>
            <span class="zu-global-notify-icon"></span>
            <span class="zu-global-notify-msg"></span>
        </div>
    </div>
</div>